package com.cdgeekcamp.redas.wechat.entity;

import com.cdgeekcamp.redas.wechat.service.MsgHandlerService;

/**
 * 地理位置消息
 */
public class LocationMessageEntity extends MessageBaseEntity {
    // 地理位置维度
    private String Location_X;
    // 地理位置经度
    private String Location_Y;
    // 地图缩放大小
    private String Scale;
    // 地理位置信息
    private String Label;
    // 消息id，64位整型
    private Long MsgId;

    public LocationMessageEntity() {
    }

    public LocationMessageEntity(String fromUserName, String toUserName, Long createTime, String msgType) {
        super(fromUserName, toUserName, createTime, msgType);
    }

    public LocationMessageEntity(String location_X, String location_Y, String scale, String label, Long msgId) {
        Location_X = location_X;
        Location_Y = location_Y;
        Scale = scale;
        Label = label;
        MsgId = msgId;
    }

    public LocationMessageEntity(String fromUserName, String toUserName, Long createTime, String msgType, String location_X,
                                 String location_Y, String scale, String label, Long msgId) {
        super(fromUserName, toUserName, createTime, msgType);
        Location_X = location_X;
        Location_Y = location_Y;
        Scale = scale;
        Label = label;
        MsgId = msgId;
    }

    public String getLocation_X() {
        return Location_X;
    }

    public void setLocation_X(String location_X) {
        Location_X = location_X;
    }

    public String getLocation_Y() {
        return Location_Y;
    }

    public void setLocation_Y(String location_Y) {
        Location_Y = location_Y;
    }

    public String getScale() {
        return Scale;
    }

    public void setScale(String scale) {
        Scale = scale;
    }

    public String getLabel() {
        return Label;
    }

    public void setLabel(String label) {
        Label = label;
    }

    public Long getMsgId() {
        return MsgId;
    }

    public void setMsgId(Long msgId) {
        MsgId = msgId;
    }

    @Override
    public String doReply() {
        return new MsgHandlerService().locationHandler(this);
    }
}
